#pragma once

#ifdef XLOG_HEADER_ONLY

#include "log_registry.h"

namespace xlog {
log_registry& log_registry::instance()
{
    static log_registry s_instance;
    return s_instance;
}
    
log_registry::log_registry()
{
    m_default_logger = std::make_shared<logger>();
}

void log_registry::set_global_level(const log_level level)
{
    m_global_level = level;
    m_default_logger->set_level(level);
    // TODO
}


logger::ptr log_registry::get_default_logger()
{
    // TODO Mutex
    return m_default_logger;
}

} // namespace xlog

#endif